package com.ws.module.test03;

import com.ws.entity.test03.personA;
import com.ws.entity.test03.personB;

import java.util.Scanner;

/**
 * @author 王硕
 * @version jdk21
 * @className FingerGuessingGame
 * @description
 * @date 2024/11/5 20:20
 */
public class FingerGuessingGameModule {
    Scanner scanner = new Scanner(System.in);
    public personA inputPersonA(){
        System.out.println("输入名字:");
        String inputname = scanner.next();
        System.out.println("请输入你要出的:1(剪刀)/2(拳头)/3(布)");
        int inputchoices = scanner.nextInt();
        return new personA(inputname,inputchoices);
    }
    public personB inputPersonB(){
        System.out.println("输入名字:");
        String inputname = scanner.next();
        System.out.println("请输入你要出的:1(剪刀)/2(拳头)/3(布)");
        int inputchoices = scanner.nextInt();
        return new personB(inputname,inputchoices);
    }
}
